<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="author" content="KunKun" />
    <meta name="copyright" content="" />
    <meta name="distribution" content="global" />
    <meta name="resource-type" content="document" />
    <meta name="language" content="{{lang}}" />
	<title>{{ template:title }}</title>    
   	{{ asset:render }}
    <!--{{ asset:css file="reset.css" }}-->
    <?php echo kunkun::css("reset.css")?>
    <?php echo kunkun::css("text.css")?>
    <?php echo kunkun::css("style.css")?>
	
	<?php echo kunkun::css("ddaccordion.css")?>
	<?php echo kunkun::css("superfish.css")?>
	<?php echo kunkun::asset("chosen-bootstrap/chosen/chosen.css")?>
	<!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0; url=admin/detect" />
	<![endif]-->
	
	<!-- jquery library -->
	<?php echo kunkun::js("jquery.js")?>
	<?php echo kunkun::js("ruby.min.js")?>
    <?php echo kunkun::js("toolbar.js")?>
    <?php echo kunkun::js("plugins.js")?>
    <?php echo kunkun::js("scripts.js")?>
    <script type="text/javascript">
		theme_path = '<?php echo base_url()?>{{theme:path}}';
		kunkun = {'lang': {
			dialog_message:"{{ helper:lang line='global:delete_dialog' }}",
			view: "{{ helper:lang line='global:view' }}",
			row: "{{ helper:lang line='global:row' }}",
			null: "{{ helper:lang line='global:null' }}",
			row_in_page: "{{ helper:lang line='global:row_in_page' }}",
			show: "{{ helper:lang line='global:show' }}",
			to: "{{ helper:lang line='global:to' }}",
			of: "{{ helper:lang line='global:of' }}",
			search: "{{ helper:lang line='global:search' }}",
			first: "{{ helper:lang line='global:first' }}",
			last: "{{ helper:lang line='global:last' }}",
			after: "{{ helper:lang line='global:after' }}",
			before: "{{ helper:lang line='global:before' }}",
		} };
		
		
    </script>
	{{ template:metadata }}
</head>
<body>
	{{ theme:partial name="header" }}
	<!-- Begin pageWrapper -->
	<div id="wrapper" class="container">
    	{{ theme:partial name="toolbar" }}
		
		<div id="centerPanel" class="column">
			<div id="contentArea">
            
            	<p class="breadcrumbs">
                {{ template:breadcrumbs }}
                    {{ if uri }}
                        {{ url:anchor segments=uri title=name }}&nbsp;>&nbsp;
                    {{ else }}
                        <span class="current">{{ name }}</span>
                    {{ endif }}
                {{ /template:breadcrumbs }}
                </p>
                {{if error}}
                <div class="error alert animated fadeIn">
                	<p>{{error}}</p>
                </div>
                {{endif}}
				{{ template:body }}
			</div>
		</div>
		<?php //file_partial('left') ?>
		{{ theme:partial name="left" }}
		<div class="clear"></div>
	</div>
	{{ theme:partial name="footer" }}
	<!-- End pageWrapper -->
	<!-- footer --> 
	<?php echo kunkun::js('jquery.easing.1.3.js')?>
	<?php echo kunkun::js('ddaccordion.js')?>
	<?php echo kunkun::js('hoverIntent.js')?>
	<?php echo kunkun::js('superfish.js')?>
	<?php //echo kunkun::js('jquery.tzCheckbox.js')?>
	<?php echo kunkun::asset('chosen-bootstrap/chosen/chosen.jquery.js',1)?>
	<?php //echo kunkun::asset('colorbox/jquery.colorbox.js',1)?>
    <?php echo kunkun::js("admin.js")?>
	
</body>
</html>